package com.alipay.trade.service.impl.hb;

/**
 * Created by liuyangkly on 15/10/27.
 */
public interface TradeListener {

    /**
     * 支付成功
     * @param outTradeNo
     * @param beforeCall
     */
    public void onPayTradeSuccess(String outTradeNo, long beforeCall);

    /**
     * 支付处理中
     * @param outTradeNo
     * @param beforeCall
     */
    public void onPayInProgress(String outTradeNo, long beforeCall);

    /**
     * 支付失败
     * @param outTradeNo
     * @param beforeCall
     */
    public void onPayFailed(String outTradeNo, long beforeCall);

    /***
     * 建立连接异常
     * @param outTradeNo
     * @param beforeCall
     */
    public void onConnectException(String outTradeNo, long beforeCall);

    /***
     * 报文上送异常
     * @param outTradeNo
     * @param beforeCall
     */
    public void onSendException(String outTradeNo, long beforeCall);

    /**
     * 报文接收异常
     * @param outTradeNo
     * @param beforeCall
     */
    public void onReceiveException(String outTradeNo, long beforeCall);
}
